package yxy.cherry.battle.module.record.stream;

import yxy.cherry.battle.Fighter;

/**
 * 分摊伤害
 * @author James
 * @Date 2022.3.16 18:02
 */

public class RecordStream44ShareDamage extends RecordStream{
    private Fighter source;
    private Fighter target;
    long 伤害;

    public RecordStream44ShareDamage(Fighter source, Fighter target, long 伤害) {
        this.source = source;
        this.target = target;
        this.伤害 = 伤害;
    }

    @Override
    protected void _record() {
        sb().append(44);
        sb().append("|");
        sb().append(target.getFighterPosition().code());
        sb().append("|");
        sb().append(伤害);
        sb().append("|");
        sb().append(target.get血量万分值());
        sb().append(";");
    }

}
